#include "lua_YVTool_auto.hpp"
#include "YVTool.h"
#include "tolua_fix.h"
#include "LuaBasicConversions.h"



int lua_YVTool_YVTool_speechVoice(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_speechVoice'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        std::string arg0;

        ok &= luaval_to_std_string(tolua_S, 2,&arg0, "yvcc.YVTool:speechVoice");
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_speechVoice'", nullptr);
            return 0;
        }
        cobj->speechVoice(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    if (argc == 2) 
    {
        std::string arg0;
        std::string arg1;

        ok &= luaval_to_std_string(tolua_S, 2,&arg0, "yvcc.YVTool:speechVoice");

        ok &= luaval_to_std_string(tolua_S, 3,&arg1, "yvcc.YVTool:speechVoice");
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_speechVoice'", nullptr);
            return 0;
        }
        cobj->speechVoice(arg0, arg1);
        lua_settop(tolua_S, 1);
        return 1;
    }
    if (argc == 3) 
    {
        std::string arg0;
        std::string arg1;
        bool arg2;

        ok &= luaval_to_std_string(tolua_S, 2,&arg0, "yvcc.YVTool:speechVoice");

        ok &= luaval_to_std_string(tolua_S, 3,&arg1, "yvcc.YVTool:speechVoice");

        ok &= luaval_to_boolean(tolua_S, 4,&arg2, "yvcc.YVTool:speechVoice");
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_speechVoice'", nullptr);
            return 0;
        }
        cobj->speechVoice(arg0, arg1, arg2);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:speechVoice",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_speechVoice'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_stopPlay(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_stopPlay'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 0) 
    {
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_stopPlay'", nullptr);
            return 0;
        }
        cobj->stopPlay();
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:stopPlay",argc, 0);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_stopPlay'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_cpLogout(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_cpLogout'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 0) 
    {
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_cpLogout'", nullptr);
            return 0;
        }
        cobj->cpLogout();
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:cpLogout",argc, 0);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_cpLogout'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_initSDK(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_initSDK'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 2) 
    {
        unsigned long arg0;
        std::string arg1;

        ok &= luaval_to_ulong(tolua_S, 2, &arg0, "yvcc.YVTool:initSDK");

        ok &= luaval_to_std_string(tolua_S, 3,&arg1, "yvcc.YVTool:initSDK");
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_initSDK'", nullptr);
            return 0;
        }
        cobj->initSDK(arg0, arg1);
        lua_settop(tolua_S, 1);
        return 1;
    }
    if (argc == 3) 
    {
        unsigned long arg0;
        std::string arg1;
        bool arg2;

        ok &= luaval_to_ulong(tolua_S, 2, &arg0, "yvcc.YVTool:initSDK");

        ok &= luaval_to_std_string(tolua_S, 3,&arg1, "yvcc.YVTool:initSDK");

        ok &= luaval_to_boolean(tolua_S, 4,&arg2, "yvcc.YVTool:initSDK");
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_initSDK'", nullptr);
            return 0;
        }
        cobj->initSDK(arg0, arg1, arg2);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:initSDK",argc, 2);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_initSDK'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_isInitSDK(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_isInitSDK'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 0) 
    {
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_isInitSDK'", nullptr);
            return 0;
        }
        bool ret = cobj->isInitSDK();
        tolua_pushboolean(tolua_S,(bool)ret);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:isInitSDK",argc, 0);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_isInitSDK'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_registerMsgCallBack(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_registerMsgCallBack'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 0) 
    {
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_registerMsgCallBack'", nullptr);
            return 0;
        }
        cobj->registerMsgCallBack();
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:registerMsgCallBack",argc, 0);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_registerMsgCallBack'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_addLoginListern(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_addLoginListern'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        YVSDK::YVListern::YVLoginListern* arg0;

        ok &= luaval_to_object<YVSDK::YVListern::YVLoginListern>(tolua_S, 2, "yvcc.YVListern::YVLoginListern",&arg0);
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_addLoginListern'", nullptr);
            return 0;
        }
        cobj->addLoginListern(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:addLoginListern",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_addLoginListern'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_addDownloadVoiceListern(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_addDownloadVoiceListern'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        YVSDK::YVListern::YVDownloadVoiceListern* arg0;

        ok &= luaval_to_object<YVSDK::YVListern::YVDownloadVoiceListern>(tolua_S, 2, "yvcc.YVListern::YVDownloadVoiceListern",&arg0);
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_addDownloadVoiceListern'", nullptr);
            return 0;
        }
        cobj->addDownloadVoiceListern(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:addDownloadVoiceListern",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_addDownloadVoiceListern'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_delReConnectListern(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_delReConnectListern'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        YVSDK::YVListern::YVReConnectListern* arg0;

        ok &= luaval_to_object<YVSDK::YVListern::YVReConnectListern>(tolua_S, 2, "yvcc.YVListern::YVReConnectListern",&arg0);
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_delReConnectListern'", nullptr);
            return 0;
        }
        cobj->delReConnectListern(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:delReConnectListern",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_delReConnectListern'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_delFinishSpeechListern(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_delFinishSpeechListern'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        YVSDK::YVListern::YVFinishSpeechListern* arg0;

        ok &= luaval_to_object<YVSDK::YVListern::YVFinishSpeechListern>(tolua_S, 2, "yvcc.YVListern::YVFinishSpeechListern",&arg0);
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_delFinishSpeechListern'", nullptr);
            return 0;
        }
        cobj->delFinishSpeechListern(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:delFinishSpeechListern",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_delFinishSpeechListern'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_addUpLoadFileListern(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_addUpLoadFileListern'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        YVSDK::YVListern::YVUpLoadFileListern* arg0;

        ok &= luaval_to_object<YVSDK::YVListern::YVUpLoadFileListern>(tolua_S, 2, "yvcc.YVListern::YVUpLoadFileListern",&arg0);
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_addUpLoadFileListern'", nullptr);
            return 0;
        }
        cobj->addUpLoadFileListern(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:addUpLoadFileListern",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_addUpLoadFileListern'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_addRecordVoiceListern(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_addRecordVoiceListern'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        YVSDK::YVListern::YVRecordVoiceListern* arg0;

        ok &= luaval_to_object<YVSDK::YVListern::YVRecordVoiceListern>(tolua_S, 2, "yvcc.YVListern::YVRecordVoiceListern",&arg0);
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_addRecordVoiceListern'", nullptr);
            return 0;
        }
        cobj->addRecordVoiceListern(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:addRecordVoiceListern",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_addRecordVoiceListern'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_getCPUserInfo(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_getCPUserInfo'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 2) 
    {
        unsigned int arg0;
        std::string arg1;

        ok &= luaval_to_uint32(tolua_S, 2,&arg0, "yvcc.YVTool:getCPUserInfo");

        ok &= luaval_to_std_string(tolua_S, 3,&arg1, "yvcc.YVTool:getCPUserInfo");
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_getCPUserInfo'", nullptr);
            return 0;
        }
        cobj->getCPUserInfo(arg0, arg1);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:getCPUserInfo",argc, 2);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_getCPUserInfo'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_playFromUrl(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_playFromUrl'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        std::string arg0;

        ok &= luaval_to_std_string(tolua_S, 2,&arg0, "yvcc.YVTool:playFromUrl");
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_playFromUrl'", nullptr);
            return 0;
        }
        cobj->playFromUrl(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    if (argc == 2) 
    {
        std::string arg0;
        std::string arg1;

        ok &= luaval_to_std_string(tolua_S, 2,&arg0, "yvcc.YVTool:playFromUrl");

        ok &= luaval_to_std_string(tolua_S, 3,&arg1, "yvcc.YVTool:playFromUrl");
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_playFromUrl'", nullptr);
            return 0;
        }
        cobj->playFromUrl(arg0, arg1);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:playFromUrl",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_playFromUrl'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_callDownloadVoiceListern(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_callDownloadVoiceListern'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        YVSDK::DownloadVoiceRespond* arg0;

        #pragma warning NO CONVERSION TO NATIVE FOR DownloadVoiceRespond*
		ok = false;
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_callDownloadVoiceListern'", nullptr);
            return 0;
        }
        cobj->callDownloadVoiceListern(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:callDownloadVoiceListern",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_callDownloadVoiceListern'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_setSpeechType(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_setSpeechType'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 2) 
    {
        yvimspeech_language arg0;
        yvimspeech_outlanguage arg1;

        ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "yvcc.YVTool:setSpeechType");

        ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "yvcc.YVTool:setSpeechType");
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_setSpeechType'", nullptr);
            return 0;
        }
        cobj->setSpeechType(arg0, arg1);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:setSpeechType",argc, 2);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_setSpeechType'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_addFinishSpeechListern(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_addFinishSpeechListern'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        YVSDK::YVListern::YVFinishSpeechListern* arg0;

        ok &= luaval_to_object<YVSDK::YVListern::YVFinishSpeechListern>(tolua_S, 2, "yvcc.YVListern::YVFinishSpeechListern",&arg0);
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_addFinishSpeechListern'", nullptr);
            return 0;
        }
        cobj->addFinishSpeechListern(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:addFinishSpeechListern",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_addFinishSpeechListern'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_delCPUserInfoListern(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_delCPUserInfoListern'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        YVSDK::YVListern::YVCPUserInfoListern* arg0;

        ok &= luaval_to_object<YVSDK::YVListern::YVCPUserInfoListern>(tolua_S, 2, "yvcc.YVListern::YVCPUserInfoListern",&arg0);
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_delCPUserInfoListern'", nullptr);
            return 0;
        }
        cobj->delCPUserInfoListern(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:delCPUserInfoListern",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_delCPUserInfoListern'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_delNetWorkSateListern(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_delNetWorkSateListern'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        YVSDK::YVListern::YVNetWorkSateListern* arg0;

        ok &= luaval_to_object<YVSDK::YVListern::YVNetWorkSateListern>(tolua_S, 2, "yvcc.YVListern::YVNetWorkSateListern",&arg0);
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_delNetWorkSateListern'", nullptr);
            return 0;
        }
        cobj->delNetWorkSateListern(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:delNetWorkSateListern",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_delNetWorkSateListern'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_delFinishPlayListern(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_delFinishPlayListern'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        YVSDK::YVListern::YVFinishPlayListern* arg0;

        ok &= luaval_to_object<YVSDK::YVListern::YVFinishPlayListern>(tolua_S, 2, "yvcc.YVListern::YVFinishPlayListern",&arg0);
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_delFinishPlayListern'", nullptr);
            return 0;
        }
        cobj->delFinishPlayListern(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:delFinishPlayListern",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_delFinishPlayListern'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_addNetWorkSateListern(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_addNetWorkSateListern'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        YVSDK::YVListern::YVNetWorkSateListern* arg0;

        ok &= luaval_to_object<YVSDK::YVListern::YVNetWorkSateListern>(tolua_S, 2, "yvcc.YVListern::YVNetWorkSateListern",&arg0);
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_addNetWorkSateListern'", nullptr);
            return 0;
        }
        cobj->addNetWorkSateListern(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:addNetWorkSateListern",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_addNetWorkSateListern'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_addDownLoadFileListern(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_addDownLoadFileListern'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        YVSDK::YVListern::YVDownLoadFileListern* arg0;

        ok &= luaval_to_object<YVSDK::YVListern::YVDownLoadFileListern>(tolua_S, 2, "yvcc.YVListern::YVDownLoadFileListern",&arg0);
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_addDownLoadFileListern'", nullptr);
            return 0;
        }
        cobj->addDownLoadFileListern(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:addDownLoadFileListern",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_addDownLoadFileListern'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_callUpLoadFileListern(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_callUpLoadFileListern'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        YVSDK::UpLoadFileRespond* arg0;

        #pragma warning NO CONVERSION TO NATIVE FOR UpLoadFileRespond*
		ok = false;
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_callUpLoadFileListern'", nullptr);
            return 0;
        }
        cobj->callUpLoadFileListern(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:callUpLoadFileListern",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_callUpLoadFileListern'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_addReConnectListern(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_addReConnectListern'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        YVSDK::YVListern::YVReConnectListern* arg0;

        ok &= luaval_to_object<YVSDK::YVListern::YVReConnectListern>(tolua_S, 2, "yvcc.YVListern::YVReConnectListern",&arg0);
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_addReConnectListern'", nullptr);
            return 0;
        }
        cobj->addReConnectListern(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:addReConnectListern",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_addReConnectListern'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_delDownloadVoiceListern(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_delDownloadVoiceListern'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        YVSDK::YVListern::YVDownloadVoiceListern* arg0;

        ok &= luaval_to_object<YVSDK::YVListern::YVDownloadVoiceListern>(tolua_S, 2, "yvcc.YVListern::YVDownloadVoiceListern",&arg0);
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_delDownloadVoiceListern'", nullptr);
            return 0;
        }
        cobj->delDownloadVoiceListern(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:delDownloadVoiceListern",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_delDownloadVoiceListern'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_stopRecord(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_stopRecord'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 0) 
    {
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_stopRecord'", nullptr);
            return 0;
        }
        cobj->stopRecord();
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:stopRecord",argc, 0);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_stopRecord'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_upLoadFile(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_upLoadFile'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        std::string arg0;

        ok &= luaval_to_std_string(tolua_S, 2,&arg0, "yvcc.YVTool:upLoadFile");
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_upLoadFile'", nullptr);
            return 0;
        }
        cobj->upLoadFile(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    if (argc == 2) 
    {
        std::string arg0;
        std::string arg1;

        ok &= luaval_to_std_string(tolua_S, 2,&arg0, "yvcc.YVTool:upLoadFile");

        ok &= luaval_to_std_string(tolua_S, 3,&arg1, "yvcc.YVTool:upLoadFile");
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_upLoadFile'", nullptr);
            return 0;
        }
        cobj->upLoadFile(arg0, arg1);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:upLoadFile",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_upLoadFile'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_callReConnectListern(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_callReConnectListern'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        YVSDK::ReconnectionNotify* arg0;

        #pragma warning NO CONVERSION TO NATIVE FOR ReconnectionNotify*
		ok = false;
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_callReConnectListern'", nullptr);
            return 0;
        }
        cobj->callReConnectListern(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:callReConnectListern",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_callReConnectListern'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_delStopRecordListern(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_delStopRecordListern'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        YVSDK::YVListern::YVStopRecordListern* arg0;

        ok &= luaval_to_object<YVSDK::YVListern::YVStopRecordListern>(tolua_S, 2, "yvcc.YVListern::YVStopRecordListern",&arg0);
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_delStopRecordListern'", nullptr);
            return 0;
        }
        cobj->delStopRecordListern(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:delStopRecordListern",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_delStopRecordListern'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_addStopRecordListern(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_addStopRecordListern'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        YVSDK::YVListern::YVStopRecordListern* arg0;

        ok &= luaval_to_object<YVSDK::YVListern::YVStopRecordListern>(tolua_S, 2, "yvcc.YVListern::YVStopRecordListern",&arg0);
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_addStopRecordListern'", nullptr);
            return 0;
        }
        cobj->addStopRecordListern(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:addStopRecordListern",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_addStopRecordListern'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_callLoginListern(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_callLoginListern'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        YVSDK::CPLoginResponce* arg0;

        #pragma warning NO CONVERSION TO NATIVE FOR CPLoginResponce*
		ok = false;
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_callLoginListern'", nullptr);
            return 0;
        }
        cobj->callLoginListern(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:callLoginListern",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_callLoginListern'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_speechUrl(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_speechUrl'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        std::string arg0;

        ok &= luaval_to_std_string(tolua_S, 2,&arg0, "yvcc.YVTool:speechUrl");
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_speechUrl'", nullptr);
            return 0;
        }
        cobj->speechUrl(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    if (argc == 2) 
    {
        std::string arg0;
        std::string arg1;

        ok &= luaval_to_std_string(tolua_S, 2,&arg0, "yvcc.YVTool:speechUrl");

        ok &= luaval_to_std_string(tolua_S, 3,&arg1, "yvcc.YVTool:speechUrl");
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_speechUrl'", nullptr);
            return 0;
        }
        cobj->speechUrl(arg0, arg1);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:speechUrl",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_speechUrl'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_playRecord(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_playRecord'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 2) 
    {
        std::string arg0;
        std::string arg1;

        ok &= luaval_to_std_string(tolua_S, 2,&arg0, "yvcc.YVTool:playRecord");

        ok &= luaval_to_std_string(tolua_S, 3,&arg1, "yvcc.YVTool:playRecord");
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_playRecord'", nullptr);
            return 0;
        }
        cobj->playRecord(arg0, arg1);
        lua_settop(tolua_S, 1);
        return 1;
    }
    if (argc == 3) 
    {
        std::string arg0;
        std::string arg1;
        std::string arg2;

        ok &= luaval_to_std_string(tolua_S, 2,&arg0, "yvcc.YVTool:playRecord");

        ok &= luaval_to_std_string(tolua_S, 3,&arg1, "yvcc.YVTool:playRecord");

        ok &= luaval_to_std_string(tolua_S, 4,&arg2, "yvcc.YVTool:playRecord");
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_playRecord'", nullptr);
            return 0;
        }
        cobj->playRecord(arg0, arg1, arg2);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:playRecord",argc, 2);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_playRecord'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_startRecord(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_startRecord'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        std::string arg0;

        ok &= luaval_to_std_string(tolua_S, 2,&arg0, "yvcc.YVTool:startRecord");
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_startRecord'", nullptr);
            return 0;
        }
        cobj->startRecord(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    if (argc == 2) 
    {
        std::string arg0;
        unsigned int arg1;

        ok &= luaval_to_std_string(tolua_S, 2,&arg0, "yvcc.YVTool:startRecord");

        ok &= luaval_to_uint32(tolua_S, 3,&arg1, "yvcc.YVTool:startRecord");
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_startRecord'", nullptr);
            return 0;
        }
        cobj->startRecord(arg0, arg1);
        lua_settop(tolua_S, 1);
        return 1;
    }
    if (argc == 3) 
    {
        std::string arg0;
        unsigned int arg1;
        std::string arg2;

        ok &= luaval_to_std_string(tolua_S, 2,&arg0, "yvcc.YVTool:startRecord");

        ok &= luaval_to_uint32(tolua_S, 3,&arg1, "yvcc.YVTool:startRecord");

        ok &= luaval_to_std_string(tolua_S, 4,&arg2, "yvcc.YVTool:startRecord");
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_startRecord'", nullptr);
            return 0;
        }
        cobj->startRecord(arg0, arg1, arg2);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:startRecord",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_startRecord'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_callFinishPlayListern(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_callFinishPlayListern'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        YVSDK::StartPlayVoiceRespond* arg0;

        #pragma warning NO CONVERSION TO NATIVE FOR StartPlayVoiceRespond*
		ok = false;
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_callFinishPlayListern'", nullptr);
            return 0;
        }
        cobj->callFinishPlayListern(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:callFinishPlayListern",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_callFinishPlayListern'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_setRecord(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_setRecord'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 2) 
    {
        unsigned int arg0;
        bool arg1;

        ok &= luaval_to_uint32(tolua_S, 2,&arg0, "yvcc.YVTool:setRecord");

        ok &= luaval_to_boolean(tolua_S, 3,&arg1, "yvcc.YVTool:setRecord");
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_setRecord'", nullptr);
            return 0;
        }
        cobj->setRecord(arg0, arg1);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:setRecord",argc, 2);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_setRecord'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_callFinishSpeechListern(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_callFinishSpeechListern'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        YVSDK::SpeechStopRespond* arg0;

        #pragma warning NO CONVERSION TO NATIVE FOR SpeechStopRespond*
		ok = false;
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_callFinishSpeechListern'", nullptr);
            return 0;
        }
        cobj->callFinishSpeechListern(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:callFinishSpeechListern",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_callFinishSpeechListern'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_unRegisterMsgCallBack(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_unRegisterMsgCallBack'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 0) 
    {
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_unRegisterMsgCallBack'", nullptr);
            return 0;
        }
        cobj->unRegisterMsgCallBack();
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:unRegisterMsgCallBack",argc, 0);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_unRegisterMsgCallBack'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_addCPUserInfoListern(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_addCPUserInfoListern'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        YVSDK::YVListern::YVCPUserInfoListern* arg0;

        ok &= luaval_to_object<YVSDK::YVListern::YVCPUserInfoListern>(tolua_S, 2, "yvcc.YVListern::YVCPUserInfoListern",&arg0);
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_addCPUserInfoListern'", nullptr);
            return 0;
        }
        cobj->addCPUserInfoListern(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:addCPUserInfoListern",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_addCPUserInfoListern'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_dispatchMsg(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_dispatchMsg'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        double arg0;

        ok &= luaval_to_number(tolua_S, 2,&arg0, "yvcc.YVTool:dispatchMsg");
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_dispatchMsg'", nullptr);
            return 0;
        }
        cobj->dispatchMsg(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:dispatchMsg",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_dispatchMsg'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_delUpLoadFileListern(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_delUpLoadFileListern'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        YVSDK::YVListern::YVUpLoadFileListern* arg0;

        ok &= luaval_to_object<YVSDK::YVListern::YVUpLoadFileListern>(tolua_S, 2, "yvcc.YVListern::YVUpLoadFileListern",&arg0);
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_delUpLoadFileListern'", nullptr);
            return 0;
        }
        cobj->delUpLoadFileListern(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:delUpLoadFileListern",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_delUpLoadFileListern'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_delLoginListern(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_delLoginListern'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        YVSDK::YVListern::YVLoginListern* arg0;

        ok &= luaval_to_object<YVSDK::YVListern::YVLoginListern>(tolua_S, 2, "yvcc.YVListern::YVLoginListern",&arg0);
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_delLoginListern'", nullptr);
            return 0;
        }
        cobj->delLoginListern(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:delLoginListern",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_delLoginListern'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_releaseSDK(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_releaseSDK'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 0) 
    {
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_releaseSDK'", nullptr);
            return 0;
        }
        cobj->releaseSDK();
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:releaseSDK",argc, 0);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_releaseSDK'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_downLoadFile(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_downLoadFile'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 2) 
    {
        std::string arg0;
        std::string arg1;

        ok &= luaval_to_std_string(tolua_S, 2,&arg0, "yvcc.YVTool:downLoadFile");

        ok &= luaval_to_std_string(tolua_S, 3,&arg1, "yvcc.YVTool:downLoadFile");
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_downLoadFile'", nullptr);
            return 0;
        }
        cobj->downLoadFile(arg0, arg1);
        lua_settop(tolua_S, 1);
        return 1;
    }
    if (argc == 3) 
    {
        std::string arg0;
        std::string arg1;
        std::string arg2;

        ok &= luaval_to_std_string(tolua_S, 2,&arg0, "yvcc.YVTool:downLoadFile");

        ok &= luaval_to_std_string(tolua_S, 3,&arg1, "yvcc.YVTool:downLoadFile");

        ok &= luaval_to_std_string(tolua_S, 4,&arg2, "yvcc.YVTool:downLoadFile");
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_downLoadFile'", nullptr);
            return 0;
        }
        cobj->downLoadFile(arg0, arg1, arg2);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:downLoadFile",argc, 2);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_downLoadFile'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_callCPUserInfoListern(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_callCPUserInfoListern'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        YVSDK::GetCPUserInfoRespond* arg0;

        #pragma warning NO CONVERSION TO NATIVE FOR GetCPUserInfoRespond*
		ok = false;
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_callCPUserInfoListern'", nullptr);
            return 0;
        }
        cobj->callCPUserInfoListern(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:callCPUserInfoListern",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_callCPUserInfoListern'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_callRecordVoiceListern(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_callRecordVoiceListern'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        YVSDK::RecordVoiceNotify* arg0;

        #pragma warning NO CONVERSION TO NATIVE FOR RecordVoiceNotify*
		ok = false;
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_callRecordVoiceListern'", nullptr);
            return 0;
        }
        cobj->callRecordVoiceListern(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:callRecordVoiceListern",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_callRecordVoiceListern'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_delDownLoadFileListern(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_delDownLoadFileListern'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        YVSDK::YVListern::YVDownLoadFileListern* arg0;

        ok &= luaval_to_object<YVSDK::YVListern::YVDownLoadFileListern>(tolua_S, 2, "yvcc.YVListern::YVDownLoadFileListern",&arg0);
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_delDownLoadFileListern'", nullptr);
            return 0;
        }
        cobj->delDownLoadFileListern(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:delDownLoadFileListern",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_delDownLoadFileListern'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_callStopRecordListern(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_callStopRecordListern'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        YVSDK::RecordStopNotify* arg0;

        #pragma warning NO CONVERSION TO NATIVE FOR RecordStopNotify*
		ok = false;
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_callStopRecordListern'", nullptr);
            return 0;
        }
        cobj->callStopRecordListern(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:callStopRecordListern",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_callStopRecordListern'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_callNetWorkSateListern(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_callNetWorkSateListern'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        YVSDK::NetWorkStateNotify* arg0;

        #pragma warning NO CONVERSION TO NATIVE FOR NetWorkStateNotify*
		ok = false;
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_callNetWorkSateListern'", nullptr);
            return 0;
        }
        cobj->callNetWorkSateListern(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:callNetWorkSateListern",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_callNetWorkSateListern'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_addFinishPlayListern(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_addFinishPlayListern'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        YVSDK::YVListern::YVFinishPlayListern* arg0;

        ok &= luaval_to_object<YVSDK::YVListern::YVFinishPlayListern>(tolua_S, 2, "yvcc.YVListern::YVFinishPlayListern",&arg0);
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_addFinishPlayListern'", nullptr);
            return 0;
        }
        cobj->addFinishPlayListern(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:addFinishPlayListern",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_addFinishPlayListern'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_callDownLoadFileListern(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_callDownLoadFileListern'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        YVSDK::DownLoadFileRespond* arg0;

        #pragma warning NO CONVERSION TO NATIVE FOR DownLoadFileRespond*
		ok = false;
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_callDownLoadFileListern'", nullptr);
            return 0;
        }
        cobj->callDownLoadFileListern(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:callDownLoadFileListern",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_callDownLoadFileListern'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_delRecordVoiceListern(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_delRecordVoiceListern'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 1) 
    {
        YVSDK::YVListern::YVRecordVoiceListern* arg0;

        ok &= luaval_to_object<YVSDK::YVListern::YVRecordVoiceListern>(tolua_S, 2, "yvcc.YVListern::YVRecordVoiceListern",&arg0);
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_delRecordVoiceListern'", nullptr);
            return 0;
        }
        cobj->delRecordVoiceListern(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:delRecordVoiceListern",argc, 1);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_delRecordVoiceListern'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_cpLogin(lua_State* tolua_S)
{
    int argc = 0;
    YVSDK::YVTool* cobj = nullptr;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif


#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertype(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    cobj = (YVSDK::YVTool*)tolua_tousertype(tolua_S,1,0);

#if COCOS2D_DEBUG >= 1
    if (!cobj) 
    {
        tolua_error(tolua_S,"invalid 'cobj' in function 'lua_YVTool_YVTool_cpLogin'", nullptr);
        return 0;
    }
#endif

    argc = lua_gettop(tolua_S)-1;
    if (argc == 0) 
    {
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_cpLogin'", nullptr);
            return 0;
        }
        cobj->cpLogin();
        lua_settop(tolua_S, 1);
        return 1;
    }
    if (argc == 1) 
    {
        std::string arg0;

        ok &= luaval_to_std_string(tolua_S, 2,&arg0, "yvcc.YVTool:cpLogin");
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_cpLogin'", nullptr);
            return 0;
        }
        cobj->cpLogin(arg0);
        lua_settop(tolua_S, 1);
        return 1;
    }
    if (argc == 2) 
    {
        std::string arg0;
        std::string arg1;

        ok &= luaval_to_std_string(tolua_S, 2,&arg0, "yvcc.YVTool:cpLogin");

        ok &= luaval_to_std_string(tolua_S, 3,&arg1, "yvcc.YVTool:cpLogin");
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_cpLogin'", nullptr);
            return 0;
        }
        cobj->cpLogin(arg0, arg1);
        lua_settop(tolua_S, 1);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "yvcc.YVTool:cpLogin",argc, 0);
    return 0;

#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_cpLogin'.",&tolua_err);
#endif

    return 0;
}
int lua_YVTool_YVTool_getInstance(lua_State* tolua_S)
{
    int argc = 0;
    bool ok  = true;

#if COCOS2D_DEBUG >= 1
    tolua_Error tolua_err;
#endif

#if COCOS2D_DEBUG >= 1
    if (!tolua_isusertable(tolua_S,1,"yvcc.YVTool",0,&tolua_err)) goto tolua_lerror;
#endif

    argc = lua_gettop(tolua_S) - 1;

    if (argc == 0)
    {
        if(!ok)
        {
            tolua_error(tolua_S,"invalid arguments in function 'lua_YVTool_YVTool_getInstance'", nullptr);
            return 0;
        }
        YVSDK::YVTool* ret = YVSDK::YVTool::getInstance();
        object_to_luaval<YVSDK::YVTool>(tolua_S, "yvcc.YVTool",(YVSDK::YVTool*)ret);
        return 1;
    }
    luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "yvcc.YVTool:getInstance",argc, 0);
    return 0;
#if COCOS2D_DEBUG >= 1
    tolua_lerror:
    tolua_error(tolua_S,"#ferror in function 'lua_YVTool_YVTool_getInstance'.",&tolua_err);
#endif
    return 0;
}
static int lua_YVTool_YVTool_finalize(lua_State* tolua_S)
{
    printf("luabindings: finalizing LUA object (YVTool)");
    return 0;
}

int lua_register_YVTool_YVTool(lua_State* tolua_S)
{
    tolua_usertype(tolua_S,"yvcc.YVTool");
    tolua_cclass(tolua_S,"YVTool","yvcc.YVTool","",nullptr);

    tolua_beginmodule(tolua_S,"YVTool");
        tolua_function(tolua_S,"speechVoice",lua_YVTool_YVTool_speechVoice);
        tolua_function(tolua_S,"stopPlay",lua_YVTool_YVTool_stopPlay);
        tolua_function(tolua_S,"cpLogout",lua_YVTool_YVTool_cpLogout);
        tolua_function(tolua_S,"initSDK",lua_YVTool_YVTool_initSDK);
        tolua_function(tolua_S,"isInitSDK",lua_YVTool_YVTool_isInitSDK);
        tolua_function(tolua_S,"registerMsgCallBack",lua_YVTool_YVTool_registerMsgCallBack);
        tolua_function(tolua_S,"addLoginListern",lua_YVTool_YVTool_addLoginListern);
        tolua_function(tolua_S,"addDownloadVoiceListern",lua_YVTool_YVTool_addDownloadVoiceListern);
        tolua_function(tolua_S,"delReConnectListern",lua_YVTool_YVTool_delReConnectListern);
        tolua_function(tolua_S,"delFinishSpeechListern",lua_YVTool_YVTool_delFinishSpeechListern);
        tolua_function(tolua_S,"addUpLoadFileListern",lua_YVTool_YVTool_addUpLoadFileListern);
        tolua_function(tolua_S,"addRecordVoiceListern",lua_YVTool_YVTool_addRecordVoiceListern);
        tolua_function(tolua_S,"getCPUserInfo",lua_YVTool_YVTool_getCPUserInfo);
        tolua_function(tolua_S,"playFromUrl",lua_YVTool_YVTool_playFromUrl);
        tolua_function(tolua_S,"callDownloadVoiceListern",lua_YVTool_YVTool_callDownloadVoiceListern);
        tolua_function(tolua_S,"setSpeechType",lua_YVTool_YVTool_setSpeechType);
        tolua_function(tolua_S,"addFinishSpeechListern",lua_YVTool_YVTool_addFinishSpeechListern);
        tolua_function(tolua_S,"delCPUserInfoListern",lua_YVTool_YVTool_delCPUserInfoListern);
        tolua_function(tolua_S,"delNetWorkSateListern",lua_YVTool_YVTool_delNetWorkSateListern);
        tolua_function(tolua_S,"delFinishPlayListern",lua_YVTool_YVTool_delFinishPlayListern);
        tolua_function(tolua_S,"addNetWorkSateListern",lua_YVTool_YVTool_addNetWorkSateListern);
        tolua_function(tolua_S,"addDownLoadFileListern",lua_YVTool_YVTool_addDownLoadFileListern);
        tolua_function(tolua_S,"callUpLoadFileListern",lua_YVTool_YVTool_callUpLoadFileListern);
        tolua_function(tolua_S,"addReConnectListern",lua_YVTool_YVTool_addReConnectListern);
        tolua_function(tolua_S,"delDownloadVoiceListern",lua_YVTool_YVTool_delDownloadVoiceListern);
        tolua_function(tolua_S,"stopRecord",lua_YVTool_YVTool_stopRecord);
        tolua_function(tolua_S,"upLoadFile",lua_YVTool_YVTool_upLoadFile);
        tolua_function(tolua_S,"callReConnectListern",lua_YVTool_YVTool_callReConnectListern);
        tolua_function(tolua_S,"delStopRecordListern",lua_YVTool_YVTool_delStopRecordListern);
        tolua_function(tolua_S,"addStopRecordListern",lua_YVTool_YVTool_addStopRecordListern);
        tolua_function(tolua_S,"callLoginListern",lua_YVTool_YVTool_callLoginListern);
        tolua_function(tolua_S,"speechUrl",lua_YVTool_YVTool_speechUrl);
        tolua_function(tolua_S,"playRecord",lua_YVTool_YVTool_playRecord);
        tolua_function(tolua_S,"startRecord",lua_YVTool_YVTool_startRecord);
        tolua_function(tolua_S,"callFinishPlayListern",lua_YVTool_YVTool_callFinishPlayListern);
        tolua_function(tolua_S,"setRecord",lua_YVTool_YVTool_setRecord);
        tolua_function(tolua_S,"callFinishSpeechListern",lua_YVTool_YVTool_callFinishSpeechListern);
        tolua_function(tolua_S,"unRegisterMsgCallBack",lua_YVTool_YVTool_unRegisterMsgCallBack);
        tolua_function(tolua_S,"addCPUserInfoListern",lua_YVTool_YVTool_addCPUserInfoListern);
        tolua_function(tolua_S,"dispatchMsg",lua_YVTool_YVTool_dispatchMsg);
        tolua_function(tolua_S,"delUpLoadFileListern",lua_YVTool_YVTool_delUpLoadFileListern);
        tolua_function(tolua_S,"delLoginListern",lua_YVTool_YVTool_delLoginListern);
        tolua_function(tolua_S,"releaseSDK",lua_YVTool_YVTool_releaseSDK);
        tolua_function(tolua_S,"downLoadFile",lua_YVTool_YVTool_downLoadFile);
        tolua_function(tolua_S,"callCPUserInfoListern",lua_YVTool_YVTool_callCPUserInfoListern);
        tolua_function(tolua_S,"callRecordVoiceListern",lua_YVTool_YVTool_callRecordVoiceListern);
        tolua_function(tolua_S,"delDownLoadFileListern",lua_YVTool_YVTool_delDownLoadFileListern);
        tolua_function(tolua_S,"callStopRecordListern",lua_YVTool_YVTool_callStopRecordListern);
        tolua_function(tolua_S,"callNetWorkSateListern",lua_YVTool_YVTool_callNetWorkSateListern);
        tolua_function(tolua_S,"addFinishPlayListern",lua_YVTool_YVTool_addFinishPlayListern);
        tolua_function(tolua_S,"callDownLoadFileListern",lua_YVTool_YVTool_callDownLoadFileListern);
        tolua_function(tolua_S,"delRecordVoiceListern",lua_YVTool_YVTool_delRecordVoiceListern);
        tolua_function(tolua_S,"cpLogin",lua_YVTool_YVTool_cpLogin);
        tolua_function(tolua_S,"getInstance", lua_YVTool_YVTool_getInstance);
    tolua_endmodule(tolua_S);
    std::string typeName = typeid(YVSDK::YVTool).name();
    g_luaType[typeName] = "yvcc.YVTool";
    g_typeCast["YVTool"] = "yvcc.YVTool";
    return 1;
}

TOLUA_API int register_all_YVTool(lua_State* tolua_S)
{
	tolua_open(tolua_S);
	
	tolua_module(tolua_S,"yvcc",0);
	tolua_beginmodule(tolua_S,"yvcc");

	lua_register_YVTool_YVTool(tolua_S);

	tolua_endmodule(tolua_S);
	return 1;
}

int register_YVTool_moudle(lua_State* L)
{
	lua_getglobal(L, "_G");
	if (lua_istable(L, -1))//stack:...,_G,
	{
		register_all_YVTool(L);
	}
	lua_pop(L, 1);

	return 1;
}